package com.jiawa.train.business.req;

import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class TrainCarriageSaveReq {

    /**
    * id
    */
    private Long id;

    /**
    * 车次编号
    */
   @NotBlank(message = "【车次编号】不能为空")
    private String trainCode;

    /**
    * 厢号
    */
   @NotNull(message = "【厢号】不能为空")
    private Integer index;

    /**
    * 座位类型|枚举[SeatTypeEnum]
    */
   @NotBlank(message = "【座位类型】不能为空")
    private String seatType;

    /**
    * 座位数
    */
    private Integer seatCount;

    /**
    * 排数
    */
   @NotNull(message = "【排数】不能为空")
    private Integer rowCount;

    /**
    * 列数
    */
    private Integer colCount;

    /**
    * 新增时间
    */
            @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    /**
    * 修改时间
    */
            @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;

}